﻿@model IEnumerable<PaceR.Examples.MVC.Models.UserProfile>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @ViewRes.UserProfile.Username
        </th>
        <th>
            @ViewRes.UserProfile.Password
        </th>
        <th>
            @ViewRes.UserProfile.FullName
        </th>
        <th>
            @ViewRes.UserProfile.Email
        </th>
        <th>
            @ViewRes.UserProfile.Address1
        </th>
        <th>
            @ViewRes.UserProfile.Address2
        </th>
        <th>
            @ViewRes.UserProfile.City
        </th>
        <th>
            @ViewRes.UserProfile.Region
        </th>
        <th>
            @ViewRes.UserProfile.PostalCode
        </th>
        <th>
            @ViewRes.UserProfile.Country
        </th>
        <th>
            @ViewRes.UserProfile.LocalizationPreference
        </th>
        <th>
            @ViewRes.UserProfile.FavoriteColor
        </th>
        <th>
            @ViewRes.UserProfile.Signature
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Password)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FullName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Region)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PostalCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Country)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LocalizationPreference)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FavoriteColor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Signature)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Username }) |
            @Html.ActionLink("Details", "Details", new { id=item.Username }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Username })
        </td>
    </tr>
}

</table>
